<div [dMovable]="true" [handle]="header" [moveEl]="parent">
  <div class="modal-header" #header>
    <d-row [dGutter]="[12, 12]">
      <d-col [dSpan]="22">
        {{ 'app.common.operate.grant.title' | translate: data.title }}
        <span>{{ '- ' + data.items.roleName }}</span>
      </d-col>
      <d-col [dSpan]="2" style="text-align: right">
        <d-button
          icon="icon-close"
          bsStyle="text-dark"
          title="{{ 'app.common.operate.close.label' | translate }}"
          (btnClick)="data.onClose()"
        ></d-button>
      </d-col>
    </d-row>
  </div>
  <div class="modal-body" style="padding-top: 0px">
    <d-transfer
      [sourceOption]="sourceOpt"
      [targetOption]="targetOpt"
      [isSearch]="true"
      [titles]="{ source: 'admin.awaitGrant' | translate, target: 'admin.granted' | translate }"
      (searching)="search($event)"
      (transferToSource)="transferToSource($event)"
      (transferToTarget)="transferToTarget($event)"
    >
    </d-transfer>
  </div>
  <div class="modal-footer">
    <d-form-operation>
      <!-- <d-button style="margin-right: 4px" bsStyle="common" (btnClick)="data.onClose($event)">{{
        'app.common.operate.cancel.label' | translate
      }}</d-button> -->
      <!-- <d-button bsStyle="primary" dFormSubmit>{{ 'app.common.operate.confirm.label' | translate }}</d-button> -->
    </d-form-operation>
  </div>
</div>
